package com.runlooker.runer.ui.base;

import com.runlooker.runer.views.SFProgrssDialog;

import android.app.Activity;
import android.os.Bundle;

/**
 * @author YINENG
 * 
 */
public abstract class BaseActivity extends Activity {
	private SFProgrssDialog m_customProgrssDialog;

	public void showCustomProgrssDialog(String msg) {
		if (null == m_customProgrssDialog)
			m_customProgrssDialog = SFProgrssDialog.createProgrssDialog(this);

		if (null != m_customProgrssDialog) {
			m_customProgrssDialog.setMessage(msg);
			m_customProgrssDialog.show();
			m_customProgrssDialog.setCancelable(false);
		}
	}

	public void hideCustomProgressDialog() {
		if (null != m_customProgrssDialog) {
			m_customProgrssDialog.dismiss();
			m_customProgrssDialog = null;
		}
	}

}
